<?php

namespace app\zc\validate;

use think\Validate;

class NavValidate extends Validate
{
    protected $rule = [
        'title' => 'require|max:255',
        'url'   => 'require|max:255',
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'title.max'     => '标题不能超过255个字符',
        'url.require'   => '地址链接不能为空',
        'url.max'       => '地址链接不能超过255个字符',
    ];
}
